<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>待办事项管理</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>我的待办事项</h1>
        
        <div class="todo-wrapper">
            <!-- 左侧输入区域 -->
            <div class="input-section">
                <h2>添加新任务</h2>
                <div class="input-group">
                    <input 
                        type="text" 
                        id="taskInput" 
                        placeholder="请输入任务内容..." 
                        maxlength="100"
                        autocomplete="off"
                    >
                    <button id="addBtn" type="button">添加</button>
                </div>
                <p class="input-tip">按回车键或点击按钮添加任务</p>
            </div>

            <!-- 右侧任务列表区域 -->
            <div class="list-section">
                <h2>任务列表</h2>
                <div id="taskList" class="task-list">
                    <div class="empty-state">
                        <i class="empty-icon">📋</i>
                        <p>暂无任务，请添加新任务</p>
                    </div>
                </div>
                <div class="list-footer">
                    <span id="taskCount">共 0 个任务</span>
                    <button id="clearCompleted" class="clear-btn" style="display: none;">清除已完成</button>
                </div>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>
